package ar.edu.taxi.test;

import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;

import ar.edu.taxi.persistencia.DataAccesObject;

public class DAOtest {
	public static void main(String[] args) {
		DataAccesObject d = new DataAccesObject();
		Connection c = d.getConexion();
		try {
			Statement s = c.createStatement();
			ResultSet rs = s.executeQuery("select * from users");
			while(rs.next()){
				System.out.println(rs.getString(1));
			}
		} catch (SQLException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
}
